export function getStorage(name) {
    return JSON.parse(localStorage.getItem(name)||'{}')
}
export function setStorage(name, value) {
    const oldData = getStorage(name)
    localStorage.setItem(name,JSON.stringify(Object.assign({},oldData,value)))
}